import { Injectable } from '@nestjs/common';
import { INestApplication } from '@nestjs/common';

@Injectable()
export class AppInstanceService {
  private static instance: INestApplication;

  setApp(app: INestApplication) {
    AppInstanceService.instance = app;
  }

  getApp(): INestApplication {
    return AppInstanceService.instance;
  }
}
